package com.tn.dao;


import com.googlecode.objectify.Objectify;
import com.tn.bo.POHeaderVersion;
import com.tn.service.OfyDataService;

public class POHeaderVersionDAO {

	static {
		// Register All Entities Here.
		OfyDataService.getInstance().registerEntity(POHeaderVersion.class);
		
	}
	
	public void insertNewVersion(POHeaderVersion poHeaderVersion) throws Exception {
		try{
		Objectify txn = OfyDataService.getInstance().beginOfyTransaction();
		txn.put(poHeaderVersion);
		OfyDataService.getInstance().commitOfyTransaction(txn);
		}catch(Exception ex){
			throw new Exception(ex);
		}

	}
}
